package resources.pojo;

import resources.util.Tool;

public class account {
	
	public account(){}
	
	private String id;
	private hr_employee employee;
	private String username;
	private String password;
	private permission permission;
	private int status_login;
	private int status;
	private String ip;
	private int language;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public hr_employee getEmployee() {
		return employee;
	}
	public void setEmployee(hr_employee employee) {
		this.employee = employee;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = Tool.encodeMD5(password);
	}
	public permission getPermission() {
		return permission;
	}
	public void setPermission(permission permission) {
		this.permission = permission;
	}
	public int getStatus_login() {
		return status_login;
	}
	public void setStatus_login(int status_login) {
		this.status_login = status_login;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public int getLanguage() {
		return language;
	}
	public void setLanguage(int language) {
		this.language = language;
	}
}
